package com.ryan.mms.privilage.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ryan.framework.dto.Dto;
import com.ryan.framework.exception.AppException;
import com.ryan.framework.model.Model;
import com.ryan.framework.service.BaseService;
import com.ryan.framework.tag.pagination.Page;
import com.ryan.mms.privilage.dto.OperatorDto;
import com.ryan.mms.privilage.model.Operator;

@Transactional
public interface OperatorService<T extends Dto,M extends Model,PK extends Serializable> extends BaseService<OperatorDto,Operator,Long>{
	public OperatorDto findByLoginName(String loginName) throws AppException;	
	public OperatorDto login(OperatorDto operatorDto);
	public void deleteAll(List<PK> pks);
	public List<OperatorDto> find(Page page, OperatorDto operatorDto);
}
